<template>
  <el-card class="box-card">
    <div slot="header"
         class="clearfix">
      <span>账户信息</span>
    </div>
    <el-form label-width="100px">
      <div class="user-info">
        <el-form-item label="公司全称">
          <span>{{ basicInfo.tenantName }}</span>
        </el-form-item>
        <el-form-item label="公司编号">
          <span>{{ basicInfo.tenantCode }}</span>
        </el-form-item>
        <el-form-item label="昵称">
          <span>{{ basicInfo.name }}</span>
        </el-form-item>
        <el-form-item label="登录账号">
          <span>{{basicInfo.userAccount + '@' + basicInfo.tenantAlias}}</span>
        </el-form-item>
        <el-form-item label="创建时间">
          <span>{{ basicInfo.createAt }}</span>
        </el-form-item>
      </div>
    </el-form>
  </el-card>
</template>

<script>
export default {
  name: "UserGeneralInfo",
  props: {
    value: {
      type: Object,
      default: () => { }
    },
    open: {
      type: Object,
      default: () => { }
    }
  },
  data () {
    return {
      // basicInfo: {}
    }
  },
  computed: {
    openAccount () {
      return this.open
    },
    basicInfo () {
      return this.value
    }
  }
}
</script>

<style lang="scss" scoped>
</style>